خرید بک لینک

Vote count: 0

I am trying to utilize cython to provide a wrapper for my C++ utilities. One such function I am trying to make accessible is an accessor that retus an enum based on file type.

Here is how I re-define the function in cython:

cdef exte from "reader.h" namespace "magic_number":
   enum mcr_magic_number_t:                                                                              
      MDI = 0                                                                                            
      EOT                                                                                                
      RV                                                                                                 
      UNKNOWN  

and then in my reader.pxd file I have

cpdef mcr_magic_number_t magic_number(self)

and then in my 'reader.pyx' file I have

cpdef mcr_magic_number_t magic_number(self):            
   """                                           
   :retu: the magic_number enum                       
   :rtype: mcr_magic_number_t                           
   """                                                  
   retu self.thisptr.magic_number() 

Now, when I go to compile this, I get a waing

waing: ‘__pyx_r’ may be used uninitialized in this function

Anyone know how is best to get around this? I tried searching for solutions on google but all I got were pages of other people reporting the same __pyx_r error. Maybe there is a way to set a default value?

asked 38 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 22:19

Vote count: 0

We are having problems with our subversion server. I am the admin of the server and the svn account users all of a sudden are not able to login on the url directories. I'm thinking its due to a password expiration issue. Is this true? If so how can I change the password expiration for the users to never expire? I appreciate your time guys.

Thanks

asked 36 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 22:19

Vote count: 0

I want to write a multi lines of code in c# Help me please. screenshot

asked 26 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 22:19

Vote count: 0

When I was monitoring the backup process in MS-SQL 2008 R2, I saw the single database, say A, is handled by both SQL backup Job and TDP in the same time. When I tried to query Sys.sysprocess, I found the HEAD-block from TDP was blocking the process from SQL backup Job.

For example, SPID 100 (TDP) is backing up database A. Then, SPID 65 (SQL backup Job) is backing up database A.

select * from sys.sysprocess
where spid > 50 and status <> 'sleeping'

The results expressed that SPID 100 is HEAD blocker that blocked SPID65.

The question is: Is this situation possible to be an Update Lock? and why?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 21:16

Vote count: 0

Is there a way (through a report or separate utility) to track daily hours entered in TFS 2015?

For example, if I wanted to see the difference in completed hours for work items between today and yesterday.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 21:16

Vote count: 0


I've a strange question : I need to create a SQL vulnerable injection script ! The goal is that the script is vulnerable to Union based only !
Here is my script :

$req = "SELECT pseudo, mail FROM membres WHERE pseudo='".$_POST['membre']."'";
        $ans = $bdd->query($req);
        while($data = $ans->fetch()){
            echo '<p><b>'.$data['pseudo'].'</b> : '.$data['mail'].' '.$data['password'].'</p>';
        }


As you can see if you enter :

' UNION SELECT password, pseudo FROM membres#


The Script will output all the password of the db ! But this is not realistic ! My $data['password'] is all ready echo but empty by defalt ! How to make a proper vulnerable script wich allowed the hacker to list all table , all columns !
Because in my case only one or two payload will works !
Thank you

asked 43 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 21:16

Vote count: 0

I have take the page.php page and i have created a new template page named mytemplatepage.php The page mytemplatepage.php works normally untill i try to add an sql query. when i add the bellow code the page gives http 500 error.

<?php
 global $wpdb;
  $sqlresults = $wpdb->get_results(
        "SELECT id, CategoryName
        FROM wp_SimParts"
        );
 ?>

if i remove the code and just leave

<?php
?>

the page load normally. if i put an echo on the php code the page again crashes with http 500 error

<?php
echo "hello there";
?>

asked 51 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 18:20

Vote count: 0

I am trying to finetune the fully convolutional CNN for my problem. It seems I have an out-of-date Caffe installed in my machine.

It was mentioned in https://github.com/shelhamer/fcn.berkeleyvision.org that "These models are compatible with BVLC/caffe:master @ 8c66fa5 with the merge of PRs BVLC/caffe#3613 and BVLC/caffe#3570."

I am not familiar with the merges and PRs. What does this mean? How can I install "BVLC/caffe:master @ 8c66fa5 with the merge of PRs BVLC/caffe#3613 and BVLC/caffe#3570"?

asked 50 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 18:20

Vote count: 0

I have been trying to understand jQuery keypress, keydown, keyup and input events. Could someone please point out the exact differences ? Also I would like to know do all of them get triggered when the user paste a piece of text .
Thanks

asked 47 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 18:20

Vote count: 0

The following code retrieves the player's score from the Google Play Leaderboard. If the retrieved value is superior to the one already stored on the device, the score is saved.

    public void Update()
    {       
PlayGamesPlatform.Instance.LoadScores(
            "myLeaderboardID",
            LeaderboardStart.PlayerCentered,
            100,
            LeaderboardCollection.Public,
            LeaderboardTimeSpan.AllTime,
            (data) =>
            {
                if (data.Valid)
                if (data.Scores[0].value > PlayerPrefs.GetInt("highScore", highScore))
                {
                    PlayerPrefs.SetInt("highScore", data.Scores[0].value);
                    PlayerPrefs.Save();
                }
            });
}

Unfortunately, I'm getting 2 errors on this line PlayerPrefs.SetInt("highScore", data.Scores[0].value);

error CS1502: The best overloaded method match for `UnityEngine.PlayerPrefs.SetInt(string, int)' has some invalid arguments

error CS1503: Argument `#2' caot convert `long' expression to type `int'

How can I fix this?

asked 20 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 15:31

Vote count: 0

please, help me set border over CSS for tag select for media print in Opera 38.0. I need disable print its border. This setting not function:

select{border:none !important;}

Thank

Jarda

asked 18 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 15:31

Vote count: 0

I need to get codec information when using libvlc to play remote media. Since the VLC player can achieve this(see the link below), libvlc may well do it too.

a screenshot of VLC

Also, I find that libvlc_media_tracks_get can retu a related struct as follows:

typedef struct libvlc_media_track_t
{
  /* Codec fourcc */
  uint32_t    i_codec;
  uint32_t    i_original_fourcc;
  int         i_id;
  libvlc_track_type_t i_type;

  /* Codec specific */
  int         i_profile;
  int         i_level;

  union {
      libvlc_audio_track_t *audio;
      libvlc_video_track_t *video;
      libvlc_subtitle_track_t *subtitle;
  };

  unsigned int i_bitrate;
  char *psz_language;
  char *psz_description;
} libvlc_media_track_t;

Maybe the member i_codec stores such information, but it's not human-readable and I don't know the meaning of a specific value. Probably there is a map between them and I haven't found it yet.

asked 10 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 15:31

Vote count: 0

I have encountered this weird scenario when i added rows to datagridview from a retrieved list, it gives an Argument Exception. But when I debugged it, adding breakpoint to the statement of adding rows to datagridview, I received no error at all. Can someone help me with this? Thanks.

foreach (AcctgData row in this.currentTransaction.AcctgDataList)
                    {
                        //this.dgvCommon.Update();
                        this.dgvCommon.Rows.Add(row.Model, 
                            row.Parts.ToString(), 
                            (row.PreProduction) == '1' ? true : false, 
                            row.InGoodUnits, 
                            row.InReplace, 
                            row.InOthers, 
                            (row.InGoodUnits + row.InReplace + row.InOthers),
                            row.OutNextGroup.ToString(), 
                            row.InGoodUnits, 
                            row.OutDefect, 
                            row.OutOther, 
                            (row.InGoodUnits + row.OutDefect + row.OutOther), 
                            row.PoolingInProcess, 
                            row.CompletedUnits, 
                            row.OthersInProcess, 
                            (row.PoolingInProcess + row.CompletedUnits + row.OthersInProcess),
                            row.Remarks.ToString() );
}

asked 44 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 14:00

Vote count: 0

Searching the plugin site and other resources I could not find which plugin version must I install for my Grails version. Can someone help me out?

asked 42 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 14:00

Vote count: 0

How to develop magento web service for admin login. I want to develop core php page where check magento admin login using web service. please help me thanks in advance

asked 40 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 14:00

Vote count: 0

I'm reading about the NTFS attribute types and it come to the $FILE_NAME attribute structure. Here it is:

Offset Size Description
~      ~    Standard Attribute Header
0x00   8    File reference to the parent directory.
0x08   8    C Time - File Creation
0x10   8    A Time - File Altered
0x18   8    M Time - MFT Changed
0x20   8    R Time - File Read
0x28   8    Allocated size of the file
0x30   8    Real size of the file
0x38   4    Flags, e.g. Directory, compressed, hidden
0x3c   4    Used by EAs and Reparse
0x40   1    Filename length in characters (L)
0x41   1    Filename namespace
0x42   2L   File name in Unicode (not null terminated)

What is "Filename Namespace" at the offset 0x41? I know a little about namespace i think. How can it be stored in just 1 byte? Can anyone clear this for me? Thank you.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 12:55

Vote count: 0

I want to create a folder dynamically for keep my logs on daily basis. For example in 'D:/AppLog/' folder there will be folder called '21-07-2016' which contains logs of particular date only. in the same folder there will be folder called '22-07-2016' which contains logs of particular date only

# Define the root logger with appender file
log4j.rootLogger = DEBUG, FILE

# Define the file appender
log4j.appender.FILE=org.apache.log4j.RollingFileAppender

# Set the name of the file
log4j.appender.FILE.File=D:/ClientLogs/client.log

# Set the immediate flush to true (default)
log4j.appender.FILE.ImmediateFlush=true

# Set the threshold to debug mode
log4j.appender.FILE.Threshold=debug

# Set the append to false, should not overwrite
log4j.appender.FILE.Append=true

# Set the maximum file size before rollover
log4j.appender.FILE.MaxFileSize=100KB

# Set the the backup index
log4j.appender.FILE.MaxBackupIndex=1000

# Define the layout for file appender
log4j.appender.FILE.layout=org.apache.log4j.PatteLayout
log4j.appender.FILE.layout.ConversionPatte=%d{dd MMM yyyy HH:mm:ss}  %m%n
 That was my log4j.properties file. Please help me for this. Thank you            

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 12:55

Vote count: 0

I'm using phalcon-2.0.1. I just create a calendar for my blog archive. i want to retrieve data from database which is matched with the date. my code retrieve only one post. I'm not understanding how to query loop through to check the date related data. I need to retrieve that posts which is related with the date users clicked.

[controller]

public function archivesAction($date)
{
    $description = "blog-Archive-List";
    $this->view->setVar("dynadesc", $description);
    $keywords = "blog-key";
    $this->view->setVar("dynakey", $keywords);
    if($this->session->has('uname'))
    {
        $uid = $this->session->get('id');
        $name = $this->session->get('uname');
        $active = $this->session->get('active');
        $level = $this->session->get('level');
    }
    $this->view->setVar('uid', $uid);
    $this->view->setVar("uname", $name);
    $this->view->setVar("active", $active);
    $this->view->setVar("level", $level); 
    $get = Blogs::find();
    foreach($get as $d)
    {
        $times = explode(' ', $d->datetime);
        $dater = $times[0];
        $timer = $times[1];
    }
    $archs = Blogs::find(["datetime LIKE :key:","bind"=>["key"=>'%'.$dater.'%']]);        
    $this->view->setvar('dates', $archs);
    $this->view->pick('blog/archive');
}    

[Calendar in blog page]

<table>
<tr>
<th class='L'><a href="blog?month=<?php echo($prev_month.'&amp;year='.$prev_year);?>">&lsaquo;</a></th>
<th colspan="5" class="monyer"><?php echo($monthName.'-'.$year); ?></th>
<th class='R'><a href="blog?month=<?php echo($next_month); ?>&amp;year=<?php echo($next_year);?>">&rsaquo;</a></th>
</tr>
<tr class='caption'>
<td>S</td>
<td>M</td>
<td>T</td>
<td>W</td>
<td>T</td>
<td>F</td>
<td>S</td>
</tr>

<?php
$monthstart = date("w", $timestamp);
$lastday = date("d", mktime (0, 0, 0, $month + 1, 0, $year));
$startdate = -$monthstart;
$numrows = ceil (((date("t",mktime (0, 0, 0, $month + 1, 0, $year))
+ $monthstart) / 7));
for ($k = 1; $k <= $numrows; $k++){
?><tr class="days"><?php
for ($i = 0; $i < 7; $i++){
$startdate++;
if (($startdate <= 0) || ($startdate > $lastday)){
//If we have a blank day in the calendar.
?><td class="L"><?php echo('&nbsp;');?></td><?php
} else {
if ($startdate == date("j") && $month == date("n") && $year == date("Y")){?>
<td class="today"><a href="blog/archives?date=<?php echo($year.'-'.$month.'-'.$startdate); ?>"><?php echo($startdate); ?></a></td><?php
} else {
?><td><a href="blog/archives/<?php echo($year.'-'.$month.'-'.$startdate); ?>"><?php echo($startdate); ?></a></td><?php } } } ?>
</tr><?php } ?>
</table>    

[View - archive.volt]

{% for archs in dates %}
<a href="blog/showfull/<?php echo($archs->id); ?>">
    <dl class="archL">
        <dt><b>{{archs.btitle}}</b><br/><em>{{archs.datetime}}</em></dt>
        <dd>{{archs.bintro}}</dd>
    </dl>
</a>
{% endfor %}

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 12:55

Vote count: 0

I found this helpful example:
https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started
that shows how to work with data using Ajax. However, the article does not give details about what the PHP file should contain to make the example actually work. I have tried this:

<?php
$name = (isset($_POST['userName'])) ? $_POST['userName'] : 'no name';
$computedString = "Hi, " . $name;
echo json_encode($computedString);
?>

And variations thereof, to no avail. The result is a message box that says undefined. What should be in the PHP file for this example to make it work?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 10:49

Vote count: 0

I am trying to coect a ESP8266-01 that I had for a while to my Arduino UNO r3. Using the ESP8266 is new to me. I used this site as a reference.

My coection as follows:

Arduino -> ESP8266
TX -> RX
RX -> TX
5V -> Resistor -> VCC, CH_PD
GND -> GND

I am trying to do a quick test to coect to the ESP8266

void setup() {
  // put your setup code here, to run once:
Serial2.begin(9600);
Serial.begin(115200);
}

void loop() {
  while(Serial2.available()) Serial.write(Serial2.read());
  while(Serial.available()) Serial2.write(Serial.read());

}

I get this error:

Arduino: 1.6.9 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

C:Program Files (x86)Arduinoarduino-builder -dump-prefs -logger=machine -hardware "C:Program Files (x86)Arduinohardware" -hardware "C:UsersLappyAppDataLocalArduino15packages" -tools "C:Program Files (x86)Arduinotools-builder" -tools "C:Program Files (x86)Arduinohardwaretoolsavr" -tools "C:UsersLappyAppDataLocalArduino15packages" -built-in-libraries "C:Program Files (x86)Arduinolibraries" -libraries "C:UsersLappyDocumentsArduinolibraries" -fqbn=esp8266:esp8266:generic:CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -vid-pid=0X2341_0X0043 -ide-version=10609 -build-path "C:UsersLappyAppDataLocalTempbuild020cff5e75da0458cfe8ecc88a163002.tmp" -waings=none -prefs=build.wa_data_percentage=75 -verbose "C:UsersLappyBox SyncArduinowifi_door_openerwifi_door_opener.ino"

Board generic (platform esp8266, package esp8266) is unknown

Error compiling for board Generic ESP8266 Module.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 10:49

Vote count: 0

Who ya goa call? Unrelated code to pose the problem. Not the best editor tool so being terse. Thanks.

A new method that is part of the derived class caot be accessed by the new object. All the Intellisense sees are the abstract parts of the base class. Typing them in and ruing them gets an error. If methods and fields can't be added what is the point of base to derived and on down. I have searched all examples and come up empty.

public class SalesEmployee : Employee
{
    public decimal salesbonus; // Additional field

    public SalesEmployee(string name, decimal basepay, decimal salesbonus)
    {
        this.salesbonus = salesbonus; // Create new field
    }

    public override decimal CalculatePay() // Override abstract
    {
        retu basepay + salesbonus;
    }

    public decimal CalculateExtraBonus() // Not an override 
    {
        retu basepay + (0.5 * salesbonus); // Belongs to this class only
    }

}

static void Main()
{
    // Create new employee.
    SalesEmployee employee1 = new SalesEmployee("Alice", 1000, 500);

    decimal = employee1.CalculateExtraBonus(); // Can't see the new method
            // Derived class caot get to new method.
}

I'm thinking of trying the following. Typing out questions really helps.

{  SalesEmployee salesEmpInstance = employee1 

    decimal = salesEmpInstance.CalculateExtraBonus() 
             // Maybe this could see the method.

asked 49 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 10:49

Vote count: 0

I've styled and prepared my Contact Form on my website (using Wordpress plugin called Contact Form 7).

I've styled the form, and made everything as I want it. But I only have one problem. I can't figure out how to enter custom text in a specific part of my contact form.

This is the page: http://digesale.com/contact-us/

You will obviously see an empty part in the upper right coer of the form. I want to write some text there. I tried googling for a solution, and I tried looking through the plugin's settings and even php files. I can't figure it out.

Can anyone help?

Thanks

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 9:42

Vote count: 0

I have two lists that I want to combine for csv output.

alist = ['a', 'b', 'c']
blist = ['d', 'e', 'f']

However, I want the output for the csv to format like this:

clist = ['a', 'b', 'c', 'd' 'e' 'f']

such that the last entry extended of the list contains the list of "blist", but will not be comma separated. Unfortunately, what I have been trying instead gives me:

clist =  ['a', 'b', 'c', 'def']

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 9:42

Vote count: 0

This is the header.

class Board{
public:

friend class Game;

Board() = default;
Board(int n) :N(n) {}

Board& SetType(int,int,char);
void GetType(int,int);
Board& CreateEmptyBoard();
void BoardDisplay();
private:
int N = 0;// dimension

char Maze[15][15];

const static int MaxSize = 15;};

class Game{

public:
Game() = default;
Game(int x ,int y) : PosX(x),PosY(y){}

void BuildGame();
void GameDisplay();
void MoveUp();
void MoveDown();
void MoveLeft();
void MoveRight();
private:
int PosX = 0;
int PosY = 0;
};




void Game::BuildGame(){

srand(time(NULL));
for(int i = 0; i < Board::N; i++){
    for(int j = 0; j < Board::N; j++){
        if (i == rand()%(Board::N) && j ==  rand()%(Board::N))
            Board:: Board& SetType(i,j,'W');
 }
 }
 }

In class Game's member function void BuildGame,I want to call member functionBoard& SetType(int,int,char) in class Board.I define this function in a header file and not show here. Then I build the project, I gotinvalid use of non-static data member 'Board::N' and 'SetType' was not declared in this scope. I am new in c++. Please help me to solve this. THANKS!

asked 38 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 9:42

Vote count: 0

I want to find the intercept point on two lines in an excel graph. They are non-linear and excel doesnt seem to have a built in feature to display this value.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 8:18

Vote count: 0

I am creating XMPP users using OpenFire create-user RestAPI call. And i am setting some properties for users as indicated in PayLoad Example 2.

After creating users, i add them to each others rosters. So, every user has every other user in his/her contact list (roster)

Now, on the client side (i use smack library), when i retrieve the roster for any user, i expect the properties to come back as well along with the users' jabber id and such. But i am not seeing the properties xml tag.

I don't want to create vCards (as i have heard it's hard to set up LDAP with OpenFire, etc) just to achieve this lightweight metadata setting for the user.

Any idea if what i am trying to do is even feasible. Are properties supposed to be transmitted in the IQ result stanza in response to the IQ GET stanza?

Thanks for looking and thanks in advance.

PS: If vCard is the only way for me to achieve what i want, then pls let me know how to go about setting it up. Any pointers are highly appreciated.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 8:18

Vote count: 0

I have this code to make the actions:

Intent playIntent = new Intent(Intent.ACTION_VIEW);
playIntent.setDataAndType(uri, path.contains(".jpg") ? "image/jpeg" : "video/mp4");
PendingIntent play = PendingIntent.getActivity(context, 1, playIntent, 0);
mBuilder.addAction(R.mipmap.ic_play_arrow_black_48dp, "", play);

Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
shareIntent.setType(path.contains(".jpg") ? "image/jpeg" : "video/mp4");
PendingIntent share = PendingIntent.getActivity(context, 2, shareIntent, 0);
mBuilder.addAction(R.mipmap.ic_share_white_48dp, "", share);

Intent doneIntent = new Intent(context, NotificationCloser.class);
doneIntent.putExtra("notificationId", notificationId);
PendingIntent done = PendingIntent.getBroadcast(context, 3, doneIntent, 0);
mBuilder.addAction(R.mipmap.ic_done_black_48dp, "", done);

And this is my broadcast receiver

public class NotificationCloser extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        int id = intent.getIntExtra("notificationId", 0);
        Log.i("MyInfo", "NotificationCloser.onReceive(" + id + ")");
        MainActivity.mNotifyManager.cancel(id);
    }
}

When I click in play or share button, it does according the function, opens the default app to view images or videos but doesn't close the notification. When I click in the done button, ONLY in the first time i receive the id correctly, after the first time it gets the id sent in the first time

Can someone help me?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 8:18

Vote count: 0

I have written (in THREE.js) a basic vertex editor ("sculpter") which allows the user to sculpt a single mesh object (currently with a planebuffer geometry). It uses vertex and fragment shaders to produce nice responsive preview and color effects.

I have now got the sculpter to export the modified buffergeometry to an OBJ file (using THREE.OBJExporter).

And the sculpter can load the same OBJ file back (using THREE.OBJLoader which parses an obj text structure and retus an Object3D. Each found object (in my case a single object) is converted to a Mesh with a BufferGeometry and a default MeshPhongMaterial. The phong material not important to me as I use a fragmentshader for coloring.)

I am now thinking of letting the user use the sculpter to apply vertex colors to the sculpted object. But then comes a problem of exporting/reloading those vertex colors with an OBJ file. This is because OBJ file standard does not handle vertex colors.

I see here that the free packages "MeshLab" and "MeshMixer" use a common extended OBJ-file definition which appends R,G,B values for each vertex directly after the vertex position X,Y,Z values.

I recall some time ago there was discussion on THREE.js Github about providing such an extension to THREE.OBJExporter and THREE.OBJLoader but it did not get done. Personally I would like to see vertex colors handled as a non-default option in the core THREE.OBJxxxxxx code.

Currently I am not conceed about these OBJ files being usable by other packages. So it seems to me that I could make modified versions of OBJExporter and OBJLoader to export and load vertex colors.


My Question

Is there (still using THREE.js) maybe a better/simpler/existing way of handling the export and reload of a single buffer geometry with vertex colors?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 4:12

Vote count: 0

I have this question that I have not been able to find its answer anywhere.

I am using the following lines to load data within a PySpark application:

loadFile = self.tableName+".csv"
dfInput= self.sqlContext.read.format("com.databricks.spark.csv").option("header", "true").load(loadFile) 

My cluster configuration is as follows:

  • I am using a Spark cluster with 3 nodes: 1 node is used to start the master, the other 2 nodes are ruing 1 worker each.
  • I submit the application from outside the cluster on a login node, with a script.
  • The script submits the Spark application with cluster deploy mode which I think, then in this case, makes a driver run on any of the 3 nodes I am utilising.
  • The input CSV files are stored in a globally visible temporary file system (Lustre).

In Apache Spark Standalone, how is the process of loading partitions to RAM?

  1. Is it that each worker node accesses to the driver's node RAM and loads partitions to its own RAM from there? (Storage --> driver's RAM --> worker RAM)
  2. Is it that each worker node accesses to storage and loads to its own RAM? (Storage --> worker's RAM)

Is it none of these and I am missing something here? How can I witness this process by myself (monitoring tool, unix command, somewhere in Spark)?

Any comment or resource in which I can get deep into this would be very helpful. Thanks in advance.

asked 41 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 4:12

Vote count: 0

I'm converting a .ods spreadsheet to a Pandas DataFrame. I have whole columns and rows I'd like to drop because they contain only "None". As "None" is a string, I have:

pandas.DataFrame.replace("None", numpy.nan)

...on which I call: .dropna(how='all')

Is there a pandas equivalent to numpy.nan?

Is there a way to use .dropna() with the *string "None" rather than NaN?

asked 19 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 31 تير 1395 ساعت: 4:12

صفحه بندی